using Crusades.MapView;
using Moq;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;

namespace Map.UnitTest{
	[TestFixture]
	public class MapManipulationBehavior{
		
		[Test]
		public void WhenMouseWheelRecieved_ZoomsMap(){
			Mock<IMap>  mapMock = new Mock<IMap>();
			mapMock.SetupProperty(m=>m.Zoom);
			MapManipulatorController controller = new MapManipulatorController(mapMock.Object);
			controller.MapManipulator_MouseWheel(120);
			Assert.That(mapMock.Object.Zoom, Is.EqualTo(3));
		}
	}
}